package com.application.controller;

import com.application.service.ActivityMemberService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.websocket.server.PathParam;

@RestController
@RequestMapping("/activityMember")
public class ActivityMemberController {

    @Resource
    private ActivityMemberService activityMemberService;


    @PostMapping("/applyActivity/{id}")
    public Result applyActivity(@PathParam(value = "activityId") String activityId){
        return activityMemberService.applyActivity(activityId);
    }
}
